Skip to content

Conversation

@kbrabrand
Copy link
Contributor

@kbrabrand kbrabrand commented Dec 1, 2025

Description

The PR adds an override for imports starting with https://themer.sanity.build/api/ that returns a Proxy object. This should be safe since the themes from the themer never impacts the exported schema.

This was done in response to https://linear.app/sanity/issue/CLDX-2705/validateextract-schema-fails-when-there-is-a-url-import-in reported by a user in #7602.

Testing

Tests have been added both for the importErrorHandler in isolation and a test verifying that the themer url imports work in a worker where the mockBrowserEnvironment is called. Has also been verified in a test project locally.

Notes for release

@kbrabrand kbrabrand requested a review from a team as a code owner December 1, 2025 09:56
@kbrabrand kbrabrand requested review from bjoerge and removed request for a team December 1, 2025 09:56
@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
page-building-studio Ready Ready Preview Comment Dec 3, 2025 9:48am
test-studio Ready Ready Preview Comment Dec 3, 2025 9:48am
3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
e2e-studio Ignored Ignored Dec 3, 2025 9:48am
studio-workshop Ignored Ignored Preview Dec 3, 2025 9:48am
test-next-studio Ignored Ignored Dec 3, 2025 9:48am

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

🧪 E2E Preview environment

🔑 Environment Variables for Local Testing

This is the preview URL for the E2E tests: https://e2e-studio-l6gbbx53p.sanity.dev

To run the E2E tests locally, you can use the following environment variables, then run pnpm test:e2e --ui to open the Playwright test runner.

💬 Remember to build the project first with pnpm build:e2e.

  SANITY_E2E_PROJECT_ID=ittbm412
  SANITY_E2E_BASE_URL=https://e2e-studio-l6gbbx53p.sanity.dev
  SANITY_E2E_DATASET="update depending the project you want to test (pr-11346-chromium-19889352353 || pr-11346-firefox-19889352353 )"
  SANITY_E2E_DATASET_CHROMIUM=pr-11346-chromium-19889352353
  SANITY_E2E_DATASET_FIREFOX=pr-11346-firefox-19889352353

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

📊 Playwright Test Report

Download Full E2E Report

This report contains test results, including videos of failing tests.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

⚡️ Editor Performance Report

Deploying studio and running performance tests…

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

⚡️ Editor Performance Report

Deploying studio and running performance tests…

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 44.39% 64012 / 144182
🔵 Statements 44.39% 64012 / 144182
🔵 Functions 48.21% 3411 / 7074
🔵 Branches 79.3% 13001 / 16393
File CoverageNo changed files found.
Generated in workflow #46997 for commit 60a7c05 by the Vitest Coverage Report Action

Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kbrabrand
Copy link
Contributor Author

kbrabrand commented Dec 2, 2025

LGTM

Cool. I need an approval to be able to merge :)

(running the eFPS tests again before merging ofc.. they failed as per usual)

@kbrabrand kbrabrand force-pushed the cldx-2705/themer-http-import-fix branch from a5ac793 to 60a7c05 Compare December 3, 2025 09:43
@kbrabrand kbrabrand requested a review from bjoerge December 3, 2025 09:43
@kbrabrand kbrabrand merged commit eedec5b into main Dec 3, 2025
74 of 78 checks passed
@kbrabrand kbrabrand deleted the cldx-2705/themer-http-import-fix branch December 3, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants